const Tile = require("../Tile");
const React = require("react");

const InitPage = React.createClass({

    componentDidMount(){

        var map = new OpenLayers.Map({
            div: "map",
            layers: [
                new OpenLayers.Layer.OSM()
            ],
            center: new OpenLayers.LonLat(116, 41).transform("EPSG:4326","EPSG:900913"),
            zoom: 4
        });
    },

    render(){
        return (
            <div className="container">
                <Tile header="初始化">
                    <div id="map" style={{height: "500px"}}>

                    </div>
                </Tile>
            </div>
        );
    }
});

module.exports = InitPage;